package com.book.service;

import com.book.entity.BookInfo;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @author SuperYu  2024/7/29
 */
public interface BookInfoService {

    List<BookInfo> findAllBookInfo();

    List<BookInfo> findGoodBook();
    List<BookInfo> findNewBook();
    List<BookInfo> findCollectionBook();


    PageInfo<BookInfo> findBookInfoByPage(int pageNum, int pageSize);

    BookInfo findBookInfoById(int id);

    int editBookInfo(BookInfo book);

    BookInfo findBookInfoByName(String name);

    List<BookInfo> findBookInfoLikeName(String name);

    PageInfo<BookInfo> findBookInfoByCondition(BookInfo bookInfo,double endPrice, int pageNum, int pageSize);

    BookInfo findBookInfoByEdit(int id, String username);
}
